package com.ml.mall.api.company;

import com.ml.mall.bean.base.ApiRestResult;
import com.ml.mall.bean.req.company.CompanyLogisticsInfoEditDto;
import com.ml.mall.bean.req.company.CompanyLogisticsInfoQueryDto;
import com.ml.mall.consts.PermissionConst;
import com.ml.mall.service.company.SysCompanyLogisticsInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description description
 * @author yx
 * @date 2021/8/20
 * @version 1.0
*/
@Api(tags = "【auth】供应商配送信息相关接口")
@RestController
@RequestMapping("/logistics")
public class SysCompanyLogisticsController {
    @Autowired
    private SysCompanyLogisticsInfoService logisticsInfoService;

    @PostMapping("/edit")
    @ApiModelProperty(value = "供应商配送信息的修改")
//  @RequiresPermissions(PermissionConst.LOGISTICS_EDIT)
    public ApiRestResult supplierLogisticsEdit(@RequestBody CompanyLogisticsInfoEditDto companyLogisticsInfoEditDto){
        logisticsInfoService.editSupplierLogistics(companyLogisticsInfoEditDto);
        return ApiRestResult.ok();
    }
}
